{
 "metadata": {
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5-final"
  },
  "orig_nbformat": 2,
  "kernelspec": {
   "name": "python3",
   "display_name": "Python 3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2,
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#加载所需要的宏包\n",
    "import pyecharts\n",
    "pyecharts.globals._WarningControl.ShowWarning = False\n",
    "import warnings\n",
    "warnings.filterwarnings('ignore')\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Bar\n",
    "from pyecharts.charts import WordCloud\n",
    "from pyecharts.charts import Liquid\n",
    "from pyecharts.charts import Pie\n",
    "from pyecharts.globals import ThemeType\n",
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": [
      "1.8.1\n"
     ]
    }
   ],
   "source": [
    "#检查当前版本\n",
    "print(pyecharts.__version__)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "#读取数据\n",
    "data=pd.read_csv(r\"D:\\数据采集与分析工具\\final\\dataforfinal.csv\",encoding='gbk')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "areanamelist=list(set(data[\"所在区域\"]))\n",
    "numberofbuildings=[]\n",
    "for i in areanamelist:\n",
    "    numberofbuildings.append(opts.BarItem(value=len(data[data[\"所在区域\"]==i][\"所在区域\"]),itemstyle_opts=opts.ItemStyleOpts(opacity=random.random())))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x56c0448>"
      ],
      "text/html": "\n<script>\n    require.config({\n        paths: {\n            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'essos':'https://assets.pyecharts.org/assets/themes/essos'\n        }\n    });\n</script>\n\n        <div id=\"c1c8fce7172a411a94cfddc02f8bbe4b\" style=\"width:620px; height:300px;\"></div>\n\n<script>\n        require(['echarts', 'essos'], function(echarts) {\n                var chart_c1c8fce7172a411a94cfddc02f8bbe4b = echarts.init(\n                    document.getElementById('c1c8fce7172a411a94cfddc02f8bbe4b'), 'essos', {renderer: 'canvas'});\n                var option_c1c8fce7172a411a94cfddc02f8bbe4b = {\n    \"animation\": true,\n    \"animationThreshold\": 2000,\n    \"animationDuration\": 1000,\n    \"animationEasing\": \"cubicOut\",\n    \"animationDelay\": 0,\n    \"animationDurationUpdate\": 300,\n    \"animationEasingUpdate\": \"cubicOut\",\n    \"animationDelayUpdate\": 0,\n    \"series\": [\n        {\n            \"type\": \"bar\",\n            \"name\": \"\\u5efa\\u7b51\\u6570\\u91cf\",\n            \"legendHoverLink\": true,\n            \"data\": [\n                {\n                    \"value\": 4920,\n                    \"itemStyle\": {\n                        \"opacity\": 0.986189567614573\n                    }\n                },\n                {\n                    \"value\": 2618,\n                    \"itemStyle\": {\n                        \"opacity\": 0.11647589335530428\n                    }\n                },\n                {\n                    \"value\": 1596,\n                    \"itemStyle\": {\n                        \"opacity\": 0.9566073272142188\n                    }\n                },\n                {\n                    \"value\": 854,\n                    \"itemStyle\": {\n                        \"opacity\": 0.25179540814322754\n                    }\n                },\n                {\n                    \"value\": 2646,\n                    \"itemStyle\": {\n                        \"opacity\": 0.06982265451331748\n                    }\n                },\n                {\n                    \"value\": 1906,\n                    \"itemStyle\": {\n                        \"opacity\": 0.332981440575032\n                    }\n                },\n                {\n                    \"value\": 1871,\n                    \"itemStyle\": {\n                        \"opacity\": 0.8213408083732582\n                    }\n                },\n                {\n                    \"value\": 2747,\n                    \"itemStyle\": {\n                        \"opacity\": 0.21095859748327905\n                    }\n                }\n            ],\n            \"showBackground\": false,\n            \"barMinHeight\": 0,\n            \"barCategoryGap\": \"20%\",\n            \"barGap\": \"30%\",\n            \"large\": false,\n            \"largeThreshold\": 400,\n            \"seriesLayoutBy\": \"column\",\n            \"datasetIndex\": 0,\n            \"clip\": true,\n            \"zlevel\": 0,\n            \"z\": 2,\n            \"label\": {\n                \"show\": true,\n                \"position\": \"top\",\n                \"margin\": 8\n            }\n        }\n    ],\n    \"legend\": [\n        {\n            \"data\": [\n                \"\\u5efa\\u7b51\\u6570\\u91cf\"\n            ],\n            \"selected\": {\n                \"\\u5efa\\u7b51\\u6570\\u91cf\": true\n            },\n            \"show\": true,\n            \"padding\": 5,\n            \"itemGap\": 10,\n            \"itemWidth\": 25,\n            \"itemHeight\": 14\n        }\n    ],\n    \"tooltip\": {\n        \"show\": true,\n        \"trigger\": \"item\",\n        \"triggerOn\": \"mousemove|click\",\n        \"axisPointer\": {\n            \"type\": \"line\"\n        },\n        \"showContent\": true,\n        \"alwaysShowContent\": false,\n        \"showDelay\": 0,\n        \"hideDelay\": 100,\n        \"textStyle\": {\n            \"fontSize\": 14\n        },\n        \"borderWidth\": 0,\n        \"padding\": 5\n    },\n    \"xAxis\": [\n        {\n            \"show\": true,\n            \"scale\": false,\n            \"nameLocation\": \"end\",\n            \"nameGap\": 15,\n            \"gridIndex\": 0,\n            \"inverse\": false,\n            \"offset\": 0,\n            \"splitNumber\": 5,\n            \"minInterval\": 0,\n            \"splitLine\": {\n                \"show\": false,\n                \"lineStyle\": {\n                    \"show\": true,\n                    \"width\": 1,\n                    \"opacity\": 1,\n                    \"curveness\": 0,\n                    \"type\": \"solid\"\n                }\n            },\n            \"data\": [\n                \"\\u6c5f\\u5b81\",\n                \"\\u6d66\\u53e3\",\n                \"\\u6816\\u971e\",\n                \"\\u96e8\\u82b1\\u53f0\",\n                \"\\u9f13\\u697c\",\n                \"\\u5efa\\u90ba\",\n                \"\\u7384\\u6b66\",\n                \"\\u79e6\\u6dee\"\n            ]\n        }\n    ],\n    \"yAxis\": [\n        {\n            \"show\": true,\n            \"scale\": false,\n            \"nameLocation\": \"end\",\n            \"nameGap\": 15,\n            \"gridIndex\": 0,\n            \"inverse\": false,\n            \"offset\": 0,\n            \"splitNumber\": 5,\n            \"minInterval\": 0,\n            \"splitLine\": {\n                \"show\": false,\n                \"lineStyle\": {\n                    \"show\": true,\n                    \"width\": 1,\n                    \"opacity\": 1,\n                    \"curveness\": 0,\n                    \"type\": \"solid\"\n                }\n            }\n        }\n    ],\n    \"title\": [\n        {\n            \"text\": \"\\u5357\\u4eac\\u4e0d\\u540c\\u5730\\u533a\\n\\u4e8c\\u624b\\u623f\\u6570\\u91cf\\u7684\\u67f1\\u72b6\\u56fe\",\n            \"padding\": 5,\n            \"itemGap\": 10\n        }\n    ],\n    \"toolbox\": {\n        \"show\": true,\n        \"orient\": \"horizontal\",\n        \"itemSize\": 15,\n        \"itemGap\": 10,\n        \"left\": \"80%\",\n        \"feature\": {\n            \"saveAsImage\": {\n                \"type\": \"png\",\n                \"backgroundColor\": \"auto\",\n                \"connectedBackgroundColor\": \"#fff\",\n                \"show\": true,\n                \"title\": \"\\u4fdd\\u5b58\\u4e3a\\u56fe\\u7247\",\n                \"pixelRatio\": 1\n            },\n            \"restore\": {\n                \"show\": true,\n                \"title\": \"\\u8fd8\\u539f\"\n            },\n            \"dataView\": {\n                \"show\": true,\n                \"title\": \"\\u6570\\u636e\\u89c6\\u56fe\",\n                \"readOnly\": false,\n                \"lang\": [\n                    \"\\u6570\\u636e\\u89c6\\u56fe\",\n                    \"\\u5173\\u95ed\",\n                    \"\\u5237\\u65b0\"\n                ],\n                \"backgroundColor\": \"#fff\",\n                \"textareaColor\": \"#fff\",\n                \"textareaBorderColor\": \"#333\",\n                \"textColor\": \"#000\",\n                \"buttonColor\": \"#c23531\",\n                \"buttonTextColor\": \"#fff\"\n            },\n            \"dataZoom\": {\n                \"show\": true,\n                \"title\": {\n                    \"zoom\": \"\\u533a\\u57df\\u7f29\\u653e\",\n                    \"back\": \"\\u533a\\u57df\\u7f29\\u653e\\u8fd8\\u539f\"\n                },\n                \"icon\": {},\n                \"xAxisIndex\": false,\n                \"yAxisIndex\": false,\n                \"filterMode\": \"filter\"\n            },\n            \"magicType\": {\n                \"show\": true,\n                \"type\": [\n                    \"line\",\n                    \"bar\",\n                    \"stack\",\n                    \"tiled\"\n                ],\n                \"title\": {\n                    \"line\": \"\\u5207\\u6362\\u4e3a\\u6298\\u7ebf\\u56fe\",\n                    \"bar\": \"\\u5207\\u6362\\u4e3a\\u67f1\\u72b6\\u56fe\",\n                    \"stack\": \"\\u5207\\u6362\\u4e3a\\u5806\\u53e0\",\n                    \"tiled\": \"\\u5207\\u6362\\u4e3a\\u5e73\\u94fa\"\n                },\n                \"icon\": {}\n            },\n            \"brush\": {\n                \"icon\": {},\n                \"title\": {\n                    \"rect\": \"\\u77e9\\u5f62\\u9009\\u62e9\",\n                    \"polygon\": \"\\u5708\\u9009\",\n                    \"lineX\": \"\\u6a2a\\u5411\\u9009\\u62e9\",\n                    \"lineY\": \"\\u7eb5\\u5411\\u9009\\u62e9\",\n                    \"keep\": \"\\u4fdd\\u6301\\u9009\\u62e9\",\n                    \"clear\": \"\\u6e05\\u9664\\u9009\\u62e9\"\n                }\n            }\n        }\n    }\n};\n                chart_c1c8fce7172a411a94cfddc02f8bbe4b.setOption(option_c1c8fce7172a411a94cfddc02f8bbe4b);\n        });\n    </script>\n"
     },
     "metadata": {},
     "execution_count": 5
    }
   ],
   "source": [
    "bar = Bar(init_opts=opts.InitOpts(theme=ThemeType.ESSOS,width=\"620px\", height=\"300px\"))\n",
    "bar.add_xaxis(areanamelist)\n",
    "bar.add_yaxis(\"建筑数量\", numberofbuildings)\n",
    "bar.set_global_opts(title_opts=opts.TitleOpts(title='南京不同地区\\n二手房数量的柱状图'),toolbox_opts=opts.ToolboxOpts())\n",
    "\n",
    "bar.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "typeofhouse1=data.groupby(data[\"房屋户型\"])\n",
    "numrow,numcol=np.shape(typeofhouse1)\n",
    "typeofhouse2=typeofhouse1.size().index#房屋户型\n",
    "typeofhouse1=typeofhouse1.size()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "data1=[]\n",
    "for i in range(numrow):\n",
    "    data1.append((typeofhouse2[i],str(typeofhouse1[typeofhouse2[i]])))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x62ee268>"
      ],
      "text/html": "\n<script>\n    require.config({\n        paths: {\n            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'echarts-wordcloud':'https://assets.pyecharts.org/assets/echarts-wordcloud.min'\n        }\n    });\n</script>\n\n        <div id=\"1950aa699d3a44548361c6e614a14b0e\" style=\"width:900px; height:500px;\"></div>\n\n<script>\n        require(['echarts', 'echarts-wordcloud'], function(echarts) {\n                var chart_1950aa699d3a44548361c6e614a14b0e = echarts.init(\n                    document.getElementById('1950aa699d3a44548361c6e614a14b0e'), 'white', {renderer: 'canvas'});\n                var option_1950aa699d3a44548361c6e614a14b0e = {\n    \"animation\": true,\n    \"animationThreshold\": 2000,\n    \"animationDuration\": 1000,\n    \"animationEasing\": \"cubicOut\",\n    \"animationDelay\": 0,\n    \"animationDurationUpdate\": 300,\n    \"animationEasingUpdate\": \"cubicOut\",\n    \"animationDelayUpdate\": 0,\n    \"color\": [\n        \"#c23531\",\n        \"#2f4554\",\n        \"#61a0a8\",\n        \"#d48265\",\n        \"#749f83\",\n        \"#ca8622\",\n        \"#bda29a\",\n        \"#6e7074\",\n        \"#546570\",\n        \"#c4ccd3\",\n        \"#f05b72\",\n        \"#ef5b9c\",\n        \"#f47920\",\n        \"#905a3d\",\n        \"#fab27b\",\n        \"#2a5caa\",\n        \"#444693\",\n        \"#726930\",\n        \"#b2d235\",\n        \"#6d8346\",\n        \"#ac6767\",\n        \"#1d953f\",\n        \"#6950a1\",\n        \"#918597\"\n    ],\n    \"series\": [\n        {\n            \"type\": \"wordCloud\",\n            \"name\": \"\\u70ed\\u95e8\\u623f\\u5c4b\\u6237\\u578b\\u5206\\u6790\",\n            \"shape\": \"circle\",\n            \"rotationRange\": [\n                -90,\n                90\n            ],\n            \"rotationStep\": 45,\n            \"girdSize\": 20,\n            \"sizeRange\": [\n                12,\n                60\n            ],\n            \"data\": [\n                {\n                    \"name\": \"10\\u5ba42\\u53851\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(115,148,69)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba40\\u53850\\u53a80\\u536b\",\n                    \"value\": \"4\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(7,7,93)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba40\\u53850\\u53a81\\u536b\",\n                    \"value\": \"9\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(154,38,113)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba40\\u53851\\u53a80\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(98,148,103)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba40\\u53851\\u53a81\\u536b\",\n                    \"value\": \"161\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(34,134,42)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba41\\u53850\\u53a80\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(67,160,158)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba41\\u53850\\u53a81\\u536b\",\n                    \"value\": \"7\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(150,92,68)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba41\\u53851\\u53a80\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(14,94,129)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba41\\u53851\\u53a81\\u536b\",\n                    \"value\": \"1317\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(105,29,125)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"5\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(15,21,28)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba42\\u53851\\u53a81\\u536b\",\n                    \"value\": \"40\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(86,157,116)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"6\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(47,30,60)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"1\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(119,118,24)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba40\\u53850\\u53a81\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(6,123,29)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba40\\u53850\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(110,121,91)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba40\\u53851\\u53a81\\u536b\",\n                    \"value\": \"38\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(45,105,65)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53850\\u53a81\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(52,0,54)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53850\\u53a82\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(65,48,44)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53851\\u53a80\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(108,35,140)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53851\\u53a81\\u536b\",\n                    \"value\": \"4727\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(107,116,86)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"111\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(113,6,92)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53851\\u53a83\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(109,4,79)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba41\\u53852\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(156,90,63)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba42\\u53850\\u53a81\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(11,158,121)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba42\\u53850\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(56,3,50)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba42\\u53851\\u53a81\\u536b\",\n                    \"value\": \"2937\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(17,118,46)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"142\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(145,160,90)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(149,108,82)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba42\\u53852\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(116,77,98)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba43\\u53851\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(79,1,4)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"2\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(94,147,31)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba40\\u53850\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(59,126,61)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba40\\u53851\\u53a81\\u536b\",\n                    \"value\": \"31\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(84,11,3)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba40\\u53851\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(123,8,34)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53850\\u53a81\\u536b\",\n                    \"value\": \"5\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(144,58,105)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53850\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(126,100,20)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53850\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(73,137,16)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53851\\u53a81\\u536b\",\n                    \"value\": \"1866\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(65,66,20)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"241\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(26,84,63)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53851\\u53a83\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(152,84,66)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba41\\u53852\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(4,4,69)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53850\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(153,115,46)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53851\\u53a81\\u536b\",\n                    \"value\": \"2539\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(65,46,96)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"2629\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(137,25,72)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"33\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(117,76,81)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53851\\u53a84\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(71,82,147)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53852\\u53a81\\u536b\",\n                    \"value\": \"5\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(21,135,72)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba42\\u53852\\u53a82\\u536b\",\n                    \"value\": \"9\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(130,40,9)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba43\\u53850\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(129,88,68)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba43\\u53851\\u53a81\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(151,127,89)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"24\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(35,98,160)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(140,136,86)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"3\\u5ba44\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(107,84,128)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba40\\u53851\\u53a81\\u536b\",\n                    \"value\": \"4\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(12,89,110)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba41\\u53851\\u53a81\\u536b\",\n                    \"value\": \"56\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(156,91,50)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"74\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(96,30,160)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba41\\u53851\\u53a83\\u536b\",\n                    \"value\": \"6\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(148,31,93)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba41\\u53851\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(37,75,57)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba41\\u53852\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(44,134,106)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53850\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(67,143,69)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53851\\u53a81\\u536b\",\n                    \"value\": \"135\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(2,61,127)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1144\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(86,62,146)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"139\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(97,37,28)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53851\\u53a84\\u536b\",\n                    \"value\": \"11\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(22,88,137)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53852\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(108,58,126)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53852\\u53a82\\u536b\",\n                    \"value\": \"10\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(90,43,26)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53852\\u53a83\\u536b\",\n                    \"value\": \"4\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(78,38,107)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba42\\u53853\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(159,31,94)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba43\\u53851\\u53a81\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(122,10,7)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"59\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(125,151,46)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"29\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(103,40,28)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba43\\u53851\\u53a84\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(39,157,132)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba43\\u53852\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(87,36,55)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba43\\u53852\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(47,115,151)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba44\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(76,41,29)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba44\\u53851\\u53a83\\u536b\",\n                    \"value\": \"5\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(47,44,122)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"4\\u5ba44\\u53852\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(46,89,122)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba41\\u53851\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(120,159,139)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"13\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(44,100,100)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba41\\u53851\\u53a83\\u536b\",\n                    \"value\": \"6\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(14,39,158)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53850\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(129,82,109)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53851\\u53a81\\u536b\",\n                    \"value\": \"6\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(110,29,63)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"179\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(35,103,51)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"75\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(20,107,15)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53851\\u53a84\\u536b\",\n                    \"value\": \"8\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(7,8,80)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53851\\u53a85\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(62,57,74)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53852\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(62,66,72)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53852\\u53a82\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(110,17,149)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba42\\u53852\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(41,8,38)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba43\\u53850\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(108,29,133)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"38\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(95,84,87)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"40\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(145,0,159)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba43\\u53851\\u53a84\\u536b\",\n                    \"value\": \"6\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(109,113,0)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba43\\u53852\\u53a82\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(0,34,25)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba43\\u53852\\u53a83\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(8,85,88)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba44\\u53851\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(41,27,149)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba44\\u53851\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(67,75,6)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba44\\u53852\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(140,160,147)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"5\\u5ba44\\u53852\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(158,160,133)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(10,67,143)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba41\\u53851\\u53a83\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(113,24,155)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba41\\u53851\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(132,32,103)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53851\\u53a81\\u536b\",\n                    \"value\": \"5\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(147,95,27)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"21\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(60,159,137)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"26\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(115,63,130)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53851\\u53a84\\u536b\",\n                    \"value\": \"4\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(127,126,137)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53851\\u53a85\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(82,131,130)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53851\\u53a86\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(108,99,158)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53852\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(140,146,27)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53852\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(126,94,71)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba42\\u53853\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(59,35,63)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"11\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(0,13,151)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"15\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(129,59,73)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba43\\u53851\\u53a84\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(35,159,18)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba43\\u53851\\u53a85\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(100,5,20)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba43\\u53852\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(14,35,61)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba44\\u53851\\u53a83\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(117,115,40)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba44\\u53851\\u53a84\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(85,70,110)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"6\\u5ba44\\u53851\\u53a85\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(65,94,116)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba41\\u53851\\u53a81\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(77,26,39)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba41\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(30,56,90)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba41\\u53851\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(95,100,88)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba42\\u53851\\u53a82\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(128,80,140)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"8\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(141,46,63)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba42\\u53851\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(33,112,108)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba42\\u53851\\u53a85\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(112,150,21)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(68,32,30)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"6\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(40,27,156)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba43\\u53851\\u53a84\\u536b\",\n                    \"value\": \"3\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(111,38,97)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba43\\u53851\\u53a85\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(117,57,13)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba43\\u53852\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(87,80,146)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba44\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(46,151,57)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba44\\u53851\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(91,35,2)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"7\\u5ba44\\u53851\\u53a85\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(125,148,156)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"8\\u5ba42\\u53851\\u53a83\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(147,131,92)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"8\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"2\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(37,1,124)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"8\\u5ba44\\u53852\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(160,159,94)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"9\\u5ba43\\u53851\\u53a82\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(160,51,155)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"9\\u5ba43\\u53851\\u53a83\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(96,136,50)\"\n                        }\n                    }\n                },\n                {\n                    \"name\": \"9\\u5ba43\\u53851\\u53a84\\u536b\",\n                    \"value\": \"1\",\n                    \"textStyle\": {\n                        \"normal\": {\n                            \"color\": \"rgb(91,123,123)\"\n                        }\n                    }\n                }\n            ],\n            \"drawOutOfBound\": false,\n            \"textStyle\": {\n                \"emphasis\": {}\n            }\n        }\n    ],\n    \"legend\": [\n        {\n            \"data\": [],\n            \"selected\": {},\n            \"show\": true,\n            \"padding\": 5,\n            \"itemGap\": 10,\n            \"itemWidth\": 25,\n            \"itemHeight\": 14\n        }\n    ],\n    \"tooltip\": {\n        \"show\": true,\n        \"trigger\": \"item\",\n        \"triggerOn\": \"mousemove|click\",\n        \"axisPointer\": {\n            \"type\": \"line\"\n        },\n        \"showContent\": true,\n        \"alwaysShowContent\": false,\n        \"showDelay\": 0,\n        \"hideDelay\": 100,\n        \"textStyle\": {\n            \"fontSize\": 14\n        },\n        \"borderWidth\": 0,\n        \"padding\": 5\n    },\n    \"title\": [\n        {\n            \"text\": \"\\u70ed\\u95e8\\u623f\\u5c4b\\u6237\\u578b\\u5206\\u6790\",\n            \"padding\": 5,\n            \"itemGap\": 10,\n            \"textStyle\": {\n                \"fontSize\": 23\n            }\n        }\n    ]\n};\n                chart_1950aa699d3a44548361c6e614a14b0e.setOption(option_1950aa699d3a44548361c6e614a14b0e);\n        });\n    </script>\n"
     },
     "metadata": {},
     "execution_count": 8
    }
   ],
   "source": [
    "(\n",
    "    WordCloud()\n",
    "    .add(series_name=\"热门房屋户型分析\", data_pair=data1)\n",
    "    .set_global_opts(\n",
    "        title_opts=opts.TitleOpts(\n",
    "            title=\"热门房屋户型分析\", title_textstyle_opts=opts.TextStyleOpts(font_size=23)\n",
    "        ),\n",
    "        tooltip_opts=opts.TooltipOpts(is_show=True),\n",
    "    )\n",
    "    .render_notebook())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x13ac3e68>"
      ],
      "text/html": "\n<script>\n    require.config({\n        paths: {\n            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'echarts-liquidfill':'https://assets.pyecharts.org/assets/echarts-liquidfill.min'\n        }\n    });\n</script>\n\n        <div id=\"03491db2a0bb463db6d6ecce3306ed40\" style=\"width:900px; height:500px;\"></div>\n\n<script>\n        require(['echarts', 'echarts-liquidfill'], function(echarts) {\n                var chart_03491db2a0bb463db6d6ecce3306ed40 = echarts.init(\n                    document.getElementById('03491db2a0bb463db6d6ecce3306ed40'), 'white', {renderer: 'canvas'});\n                var option_03491db2a0bb463db6d6ecce3306ed40 = {\n    \"animation\": true,\n    \"animationThreshold\": 2000,\n    \"animationDuration\": 1000,\n    \"animationEasing\": \"cubicOut\",\n    \"animationDelay\": 0,\n    \"animationDurationUpdate\": 300,\n    \"animationEasingUpdate\": \"cubicOut\",\n    \"animationDelayUpdate\": 0,\n    \"color\": [\n        \"#c23531\",\n        \"#2f4554\",\n        \"#61a0a8\",\n        \"#d48265\",\n        \"#749f83\",\n        \"#ca8622\",\n        \"#bda29a\",\n        \"#6e7074\",\n        \"#546570\",\n        \"#c4ccd3\",\n        \"#f05b72\",\n        \"#ef5b9c\",\n        \"#f47920\",\n        \"#905a3d\",\n        \"#fab27b\",\n        \"#2a5caa\",\n        \"#444693\",\n        \"#726930\",\n        \"#b2d235\",\n        \"#6d8346\",\n        \"#ac6767\",\n        \"#1d953f\",\n        \"#6950a1\",\n        \"#918597\"\n    ],\n    \"series\": [\n        {\n            \"type\": \"liquidFill\",\n            \"name\": \"\\u6709\",\n            \"data\": [\n                \"0.5360162856248043\"\n            ],\n            \"waveAnimation\": true,\n            \"animationDuration\": 2000,\n            \"animationDurationUpdate\": 1000,\n            \"color\": [\n                \"#294D99\",\n                \"#156ACF\",\n                \"#1598ED\",\n                \"#45BDFF\"\n            ],\n            \"shape\": \"circle\",\n            \"backgroundStyle\": {},\n            \"outline\": {\n                \"show\": true,\n                \"borderDistance\": 8\n            },\n            \"label\": {\n                \"show\": true,\n                \"position\": \"inside\",\n                \"margin\": 8,\n                \"fontSize\": 50\n            }\n        }\n    ],\n    \"legend\": [\n        {\n            \"data\": [],\n            \"selected\": {},\n            \"show\": true,\n            \"padding\": 5,\n            \"itemGap\": 10,\n            \"itemWidth\": 25,\n            \"itemHeight\": 14\n        }\n    ],\n    \"tooltip\": {\n        \"show\": true,\n        \"trigger\": \"item\",\n        \"triggerOn\": \"mousemove|click\",\n        \"axisPointer\": {\n            \"type\": \"line\"\n        },\n        \"showContent\": true,\n        \"alwaysShowContent\": false,\n        \"showDelay\": 0,\n        \"hideDelay\": 100,\n        \"textStyle\": {\n            \"fontSize\": 14\n        },\n        \"borderWidth\": 0,\n        \"padding\": 5\n    },\n    \"title\": [\n        {\n            \"text\": \"\\u4e8c\\u624b\\u623f\\u4e2d\\u6709\\u65e0\\u7535\\u68af\\u60c5\\u51b5\\u7684\\u6c34\\u7403\\u56fe\",\n            \"padding\": 5,\n            \"itemGap\": 10\n        }\n    ]\n};\n                chart_03491db2a0bb463db6d6ecce3306ed40.setOption(option_03491db2a0bb463db6d6ecce3306ed40);\n        });\n    </script>\n"
     },
     "metadata": {},
     "execution_count": 9
    }
   ],
   "source": [
    "lift=data.groupby([data[\"配备电梯\"]]).size()\n",
    "lift1=lift.index\n",
    "liquid=Liquid()\n",
    "liquid.add(lift1[1],[str(lift[1]/sum(lift))])\n",
    "liquid.set_global_opts(title_opts=opts.TitleOpts(title=\"二手房中有无电梯情况的水球图\"))\n",
    "liquid.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "output_type": "execute_result",
     "data": {
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1423b160>"
      ],
      "text/html": "\n<script>\n    require.config({\n        paths: {\n            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n        }\n    });\n</script>\n\n        <div id=\"63619de9df28428daf0d7473a0a2e8ae\" style=\"width:900px; height:600px;\"></div>\n\n<script>\n        require(['echarts'], function(echarts) {\n                var chart_63619de9df28428daf0d7473a0a2e8ae = echarts.init(\n                    document.getElementById('63619de9df28428daf0d7473a0a2e8ae'), 'white', {renderer: 'canvas'});\n                var option_63619de9df28428daf0d7473a0a2e8ae = {\n    \"animation\": true,\n    \"animationThreshold\": 2000,\n    \"animationDuration\": 1000,\n    \"animationEasing\": \"cubicOut\",\n    \"animationDelay\": 0,\n    \"animationDurationUpdate\": 300,\n    \"animationEasingUpdate\": \"cubicOut\",\n    \"animationDelayUpdate\": 0,\n    \"color\": [\n        \"#c23531\",\n        \"#2f4554\",\n        \"#61a0a8\",\n        \"#d48265\",\n        \"#749f83\",\n        \"#ca8622\",\n        \"#bda29a\",\n        \"#6e7074\",\n        \"#546570\",\n        \"#c4ccd3\",\n        \"#f05b72\",\n        \"#ef5b9c\",\n        \"#f47920\",\n        \"#905a3d\",\n        \"#fab27b\",\n        \"#2a5caa\",\n        \"#444693\",\n        \"#726930\",\n        \"#b2d235\",\n        \"#6d8346\",\n        \"#ac6767\",\n        \"#1d953f\",\n        \"#6950a1\",\n        \"#918597\"\n    ],\n    \"series\": [\n        {\n            \"type\": \"pie\",\n            \"clockwise\": true,\n            \"data\": [\n                {\n                    \"name\": \"\\u672a\\u77e5\\u7ed3\\u6784\",\n                    \"value\": \"9\"\n                },\n                {\n                    \"name\": \"\\u7816\\u6728\\u7ed3\\u6784\",\n                    \"value\": \"2\"\n                },\n                {\n                    \"name\": \"\\u7816\\u6df7\\u7ed3\\u6784\",\n                    \"value\": \"2617\"\n                },\n                {\n                    \"name\": \"\\u94a2\\u6df7\\u7ed3\\u6784\",\n                    \"value\": \"16401\"\n                },\n                {\n                    \"name\": \"\\u94a2\\u7ed3\\u6784\",\n                    \"value\": \"129\"\n                }\n            ],\n            \"radius\": [\n                \"0%\",\n                \"75%\"\n            ],\n            \"center\": [\n                \"50%\",\n                \"50%\"\n            ],\n            \"roseType\": \"area\",\n            \"label\": {\n                \"show\": true,\n                \"position\": \"top\",\n                \"margin\": 8,\n                \"formatter\": \"{b}: {c}\"\n            },\n            \"rippleEffect\": {\n                \"show\": true,\n                \"brushType\": \"stroke\",\n                \"scale\": 2.5,\n                \"period\": 4\n            }\n        }\n    ],\n    \"legend\": [\n        {\n            \"data\": [\n                \"\\u672a\\u77e5\\u7ed3\\u6784\",\n                \"\\u7816\\u6728\\u7ed3\\u6784\",\n                \"\\u7816\\u6df7\\u7ed3\\u6784\",\n                \"\\u94a2\\u6df7\\u7ed3\\u6784\",\n                \"\\u94a2\\u7ed3\\u6784\"\n            ],\n            \"selected\": {}\n        }\n    ],\n    \"tooltip\": {\n        \"show\": true,\n        \"trigger\": \"item\",\n        \"triggerOn\": \"mousemove|click\",\n        \"axisPointer\": {\n            \"type\": \"line\"\n        },\n        \"showContent\": true,\n        \"alwaysShowContent\": false,\n        \"showDelay\": 0,\n        \"hideDelay\": 100,\n        \"textStyle\": {\n            \"fontSize\": 14\n        },\n        \"borderWidth\": 0,\n        \"padding\": 5\n    }\n};\n                chart_63619de9df28428daf0d7473a0a2e8ae.setOption(option_63619de9df28428daf0d7473a0a2e8ae);\n        });\n    </script>\n"
     },
     "metadata": {},
     "execution_count": 22
    }
   ],
   "source": [
    "typeofstructure=data.groupby([data[\"建筑结构\"]]).size()\n",
    "typeofstructure1=typeofstructure.index\n",
    "data2=[]\n",
    "for i in typeofstructure1:\n",
    "    data2.append((i,str(typeofstructure[i])))\n",
    "data2\n",
    "pie=Pie(init_opts=opts.InitOpts(width=\"900px\", height=\"600px\"))\n",
    "pie.add(\"\",data_pair=data2,rosetype=\"area\")\n",
    "pie.set_series_opts(label_opts=opts.LabelOpts(formatter=\"{b}: {c}\"))\n",
    "pie.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ]
}